Red-eye removal systems and method for variable data printing (vdp) workflows

ABSTRACT

A VDP workflow system and method are disclosed. The system includes an image memory to store a photograph image. The system also includes a VDP document tool to access the photograph image from the image memory and to generate a VDP document comprising the photograph image. The system further includes a red-eye removal tool to process the VDP document to discover red-eye artifacts and to remove the red-eye artifacts from the photograph image on the VDP document based on a programmable red-eye sensitivity value.

BACKGROUND

Variable-data printing (VDP) is a form of digital printing, including on-demand printing, in which elements such as text, graphics, and/or images may be changed from one printed piece to the next using information from a database or external file. As a result, a VDP workflow can be implemented to incorporate the text, graphics, and/or images without stopping or slowing down the printing process. The images that can vary from one document or page in a document to the next can typically include photographs. Sometimes, the photographs can be subject to the red-eye effect, in which the pupils in the subjects of the photographs can appear to be red, such as resulting from a photographic flash in ambient low light.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 illustrates an example of a variable-data printing (VDP) workflow system.

FIG. 2 illustrates an example of a red-eye removal tool.

FIG. 3 illustrates an example of a computer system.

FIG. 4 illustrates an example of an enhancement settings interface.

FIG. 5 illustrates an example of a method for removing red-eye in images associated with a VDP workflow.

DETAILED DESCRIPTION

FIG. 1 illustrates an example of a variable-data printing (VDP) workflow system 10. The VDP workflow system 10 can be implemented as part of a computer system and can be implemented to generate VDP documents for a variety of purposes. For example, each of the VDP documents can include text, graphics, and/or photograph images that can be varied from one VDP document to the next; the placeholder regions where these types of data can vary, including the associated instances of these data, are referred to as variable data channels. As described herein, a VDP workflow can refer to a system for authoring a VDP project that includes one or more VDP documents that can each include interchangeable text, graphics, and/or photograph images. In addition, it is to be understood that the VDP workflow system 10 can be implemented as software or as a combination of software and hardware.

The VDP workflow system 10 includes a VDP document tool 12 that is configured to generate VDP documents in a given VDP workflow, including a VDP document 14. As an example, the VDP document tool 12 can be implemented as software on a computer system, such that a user can interact with the VDP document tool 12 via a user interface. The VDP document tool 12 can be configured to import one or more photograph images 16 from an image memory 18 to be added to the VDP document 14. As an example, the image memory 18 can be a portion of a memory of an associated computer system, such as on RAM, a flash memory, or a hard-drive. The image memory 18 is demonstrated in the example of FIG. 1 as storing a plurality X of photograph images 16, where X is a positive integer. As an example, the photograph images 16 can include photograph images 16 to be used with the VDP document 14 and other VDP documents in a given VDP workflow, and can include photograph images 16 for use in other VDP workflows.

The VDP workflow system 10 also includes one or more image enhancement tools 20 that are implemented by the VDP document tool 12 to perform image enhancement on the photograph image(s) 18 that are imported into the VDP document 14, such as in response to versions of the VDP document 14 being produced on a peripheral device (not shown), or in response to enhanced images being previewed in the VDP document tool 12. As an example, the image enhancement tool(s) 20 can include noise reduction, contrast adjustment, color adjustment, and/or a variety of other photograph enhancement features. In the example of FIG. 1, the image enhancement tool(s) 20 also includes a red-eye removal tool 22 that is configured to process the VDP document 14 to discover and remove red-eye artifacts from the photograph image(s) 18 on the VDP document 14.

In the example of FIG. 1, the red-eye removal tool 22 is provided with a programmable red-eye sensitivity value SNSTVT, such as from a user interface (not shown). The red-eye removal tool 22 can thus detect red-eye artifacts in the photograph image(s) 18 on the VDP document 14 based on the programmable red-eye sensitivity value SNSTVT. For example, the programmable red-eye sensitivity value SNSTVT can be a single scalar threshold with which an inner product between a feature vector associated with one or more candidate red-eye artifacts in the photograph image(s) 18 and a weight vector associated with training information can be compared. In one example, the training information can be platform and/or application specific. Thus, the resultant scalar inner product result can be compared with a threshold, given by the programmable sensitivity SNSTVT, to detect the presence of a red-eye artifact. The red-eye removal tool 22 can therefore automatically remove the detected red-eye artifacts from the photograph image(s) 18 on the VDP document 14.

FIG. 2 illustrates an example of a red-eye removal tool 50. The red-eye removal tool 50 can correspond to the red-eye removal tool 22 in the example of FIG. 1. Therefore, reference is to be made to the example of FIG. 1 in the following description of the example of FIG. 2.

The red-eye removal tool 50 includes a platform conversion module 52 that is configured to convert a given photograph image of the VDP document 14, demonstrated in the example of FIG. 2 as IMAGE, to a form for processing of the image by a red-eye removal tool 50 to detect red-eye artifacts. As an example, the platform conversion module 52 can be configured to re-sample the photograph image, such as based on a programmable sampling rate SMPL_RT that is provided to the platform conversion module 52. In addition, the platform conversion module 52 can be configured to convert pixels of a color space associated with the photograph image to a standard color space. For example, the color space conversion can be a rapid approximate conversion from a native color space, such as sRGB, to the standard color space, such as CIEL*a*b, such as a method based on implementing lookup tables. As a result, the red-eye removal tool 50 can be implemented on any of a variety of VDP workflow platforms for detecting red-eye artifacts.

The red-eye removal tool 50 also includes a candidate region module 54 that is configured to detect candidate regions that may correspond to red-eye artifacts in the converted photograph image. As an example, the candidate region module 54 can be configured to determine sets of contiguous groups of pixels in the converted photograph image that exhibit colors associated with red-eye artifacts. Such sets of contiguous groups of pixels can correspond to a candidate region, such as by exhibiting varying degrees of redness that can be established, such as by using iterations of thresholding operations and/or the application of grouping algorithms. The candidate regions are assembled by the candidate region module 54 as a candidate region list 56 that can correspond to information regarding location and/or characteristics of the candidate regions.

The red-eye removal tool 50 also includes an artifact detection algorithm 58 that is configured to iterate through each of the candidate regions in the candidate region list (e.g., linked list or other data structure) 56 to detect if the given candidate region is a red-eye artifact. The artifact detection algorithm 58 can be configured to first compute a feature vector associated with each of the candidate regions on the candidate region list 56. The generation of region-based feature vectors and/or geometric feature vectors leverages a greater number of color-space-independent properties for red-eye detection, which can improve robustness to changes in the input color space. Furthermore, the artifact detection algorithm 58 can also be flexible enough to address changes in the re-sampling method implemented by the platform conversion module 52 that generates the converted image to which the artifact detection algorithm 58 is applied.

The artifact detection algorithm 58 can be configured to perform red-eye artifact detection on the candidate regions in the candidate region list 56 based on the programmable red-eye sensitivity value SNSTVT. In the example of FIG. 2, the programmable red-eye sensitivity value SNSTVT can be provided to the artifact detection algorithm 58 such as via a user interface. As described above in the example of FIG. 1, the programmable red-eye sensitivity value SNSTVT can be a scalar value. The artifact detection algorithm 58 can be configured to compute an inner product between the feature vector associated with each of the candidate regions in the candidate region list 56 and a weight vector associated with training information derived, in part, using the constraints of the platform conversion module 52. The scalar result can then be compared with a threshold 60 that can be associated with the programmable red-eye sensitivity value SNSTVT. The artifact detection algorithm 58 can thus detect the presence of a red-eye artifact in the given candidate region by comparing the feature vector inner product result with a threshold, demonstrated in the example of FIG. 2 at 60, that is associated with the programmable red-eye sensitivity value SNSTVT.

As an example, the artifact detection algorithm 58 can select and compute each of the features of a given candidate on the candidate region list 56 to generate a length-M feature vector, which can be expressed as follows:

f=[f ₁ ,f ₂ , . . . ,f _(M)]  Equation 1

As an example, many values of the feature vector f can be affected by design choices, which can place importance on properly training the artifact detection algorithm 58. The artifact detection algorithm 58 can implement two additional parameters. The first of the parameters is a weight vector w that is generated based on a training procedure. The weight vector w can be expressed as follows:

w=[w ₁ ,w ₂ , . . . ,w _(M)]  Equation 2

The weight vector w can, in effect, help to optimize the system under any platform-specific constraints, such as those imposed by the platform conversion module 52. The second parameter is a threshold 60, and is associated with the programmable sensivity value SNSTVT. As an example, given training information, the threshold 60 can be determined in a manner that imposes a desired relationship between changes in SNSTVT and the trade-off between the number of detected artifacts and the number of false positives determined by the artifact detection algorithm 58. In an example, the artifact detection algorithm 58 can thus label a given candidate region as a red-eye artifact if the following relationship is satisfied:

w·f≧log(1/SNSTVT−1)  Equation 3

Thus, the artifact detection algorithm 58 splits the feature space in half with an (M—1)-dimensional hyperplane. Artifacts on one half of the plane are considered red-eye artifacts, and artifacts on the other side are considered non-red-eye artifacts. As a result, the artifact detection algorithm 58 can implement red-eye artifact detection in a simple and efficient manner that substantially minimizes required processing resources. A red-eye correction algorithm 62 can thus remove the red-eye artifacts that are detected by the artifact detection algorithm 58.

It is to be understood that the red-eye removal tool 50 is not intended to be limited to the example of FIG. 2. For example, the candidate region module 54 can be configured to implement a face detection algorithm instead of assembling the candidate region list 56. Thus, region-based features can play a role in detection of red-eye artifacts, regardless of the relationship between the face detection (either manual or automatic) and red-eye removal in a processing pipeline. Furthermore, use of an automatic face detector by the artifact detection algorithm 58 can result in all of the associated control parameters being specified directly to the red-eye correction algorithm. Thus, the red-eye removal tool 50 can be configured in a variety of ways.

FIG. 3 illustrates an example of a computer system 100. The computer system 100 can be implemented as a variety of different types of computer systems, such as a desktop computer, laptop computer, tablet computer, or enterprise computer. The computer system 100 includes a user interface 102, which can included input and output devices associated with the computer system 100. For example, the user interface 102 can include a computer monitor, mouse, and/or keyboard. In addition, the user interface 102 can be coupled directly to the computer system 100, or can be a web-based interface, such that the user interface 102 can be accessed from one or more remote locations, such as in a local area network (LAN) or via the Internet.

The user interface 102 includes a VDP document tool 104 configured to generate one or more VDP documents within a given VDP workflow. For example, the VDP document tool 104 can be configured to be substantially similar to the VDP document tool 12 in the example of FIG. 1. Thus, the VDP documents that are generated by the VDP document tool 104 can include one or more variable data channels containing photograph images. The user interface 102 also includes an enhancement settings interface 106 configured to allow a user to select and adjust one or more enhancement settings associated with the photograph images of each variable data channel in a given VDP document. As an example, the enhancement settings interface 106 can allow the user to adjust the programmable red-eye sensitivity value SNSTVT. In addition, the user interface 102 may allow the user to preview the effects that the parameters selected in the enhancement settings interface 106 can have on the photograph images in the given variable data channels, such as can appear at the time of production.

FIG. 4 illustrates an example of an enhancement settings interface 150. The enhancement settings interface 150 can correspond to the enhancement settings interface 106 in the example of FIG. 3. Thus reference is to be made to the example of FIG. 3 in the following description of the example of FIG. 4. The enhancement settings interface 150 can be configured as a user interface screen or window that can be accessed via the VDP document tool 104 on the user interface 102. The enhancement settings interface 150 includes a plurality of enhancement settings 152, demonstrated in the example of FIG. 4 as SETTING 1 through SETTING 4 and RED-EYE REMOVAL. As an example, the enhancement settings 152 labeled as SETTING 1 through SETTING 4 can include noise reduction, contrast adjustment, color adjustment, and/or a variety of other photograph enhancement features.

Each of the enhancement settings 152 includes an associated check-box 154 that allows the user to selectively activate and deactivate the given enhancement settings 152. In addition, each of the enhancement settings 152 includes an associated slider adjust function (e.g., implemented via a graphical user interface) 156 to allow the user to individually modify an associated magnitude of each of the enhancement settings 152. As a result, the slider adjust function 156 can simulate analog control of the respective enhancement settings 152. Furthermore, the slider adjust function 156 associated with the enhancement setting 152 labeled as RED-EYE REMOVAL can correspond to the programmable red-eye sensitivity value SNSTVT. Therefore, the user can select the appropriate sensitivity for red-eye removal applied to photograph images on each variable data channel in a VDP document via the enhancement settings interface 150. The user can then press an OK button 158 to save the enhancement settings 152 or press a CANCEL button 160 to exit the enhancement settings interface 150 without saving.

Referring back to the example of FIG. 3, the user interface 102 is communicatively coupled to a processor 108. Upon the user generating a VDP document for a given VDP workflow, the user can select the enhancement options for the photograph images in the VDP document via the enhancement settings interface 106, such as described above in the example of FIG. 4. The processor 108 can thus implement image enhancement tools 110 on the photograph images of the VDP documents in the VDP workflow. The image enhancement tools 110 can be implemented based on the settings programmed by the user via the enhancement settings interface 106. As an example, the image enhancement tools 110 can be implemented in the processor 108, or can be implemented as algorithms on separate application specific integrated circuits (ASICs) or via a web-based interface. In addition, the image enhancement tools 110 can include a red-dye removal tool, such as similar to the red-eye removal tool 50 in the example of FIG. 2.

Upon completing a given VDP design workflow, the processor 108 can provide the resulting VDP document to a peripheral device 112. As an example, the peripheral device 112 can be a printer or other type of output device that is configured to provide or display the VDP documents of the VDP workflow, such as in a tangible form. In addition, the processor 108 can save the variable data channels designed via the VDP workflow in a variable data channel memory 114. In the example of FIG. 3, the variable data channel memory 114 is demonstrated as saving a plurality N of variable data channels 116, where N is a positive integer. In addition, the processor 108 can be configured to save the enhancement settings for the VDP workflow in a channel settings memory 118. In the example of FIG. 3, the channel settings memory 118 is demonstrated as saving the plurality N sets of enhancement settings 120 corresponding to the respective plurality N of variable data channels 116. Therefore, the set of enhancement settings 120 for a given set of variable data channels 116 can be saved along with the corresponding variable data channel definitions 116. It is to be understood that the variable data channel memory 114 and the channel settings memory 118 are not limited to being implemented as separate memories, but can instead be the same memory.

In view of the foregoing structural and functional features described above, an example method will be better appreciated with reference to FIG. 5. While, for purposes of simplicity of explanation, the method of FIG. 5 is shown and described as executing serially, it is to be understood and appreciated that the method is not limited by the illustrated order, as parts of the method could occur in different orders and/or concurrently from that shown and described herein.

FIG. 5 illustrates an example of a method 200 for removing red-eye in images associated with a VDP workflow. At 202, a design tool (e.g., the VDP document tool 12) is initiated to generate a VDP document (e.g., the VDP document 14). At 204, a photograph image is added to a variable data channel associated with the VDP document (e.g., from the image memory 16). At 206, a programmable red-eye sensitivity value (e.g., the programmable red-eye sensitivity value SNSTVT) associated with removing red-eye artifacts from the photograph image is set in response to a user input instruction (e.g., via the user interface 102). At 208, a feature vector associated with a candidate red-eye artifact in the photograph image in the variable data channel is computed. At 210, the feature vector is compared with a threshold associated with the programmable red-eye sensitivity value (e.g., the threshold 60) to detect the presence of red-eye artifacts in candidate regions of the photograph image. At 212, detected red-eye artifacts are removed from the photograph image (e.g., via the red-eye correction algorithm 62).

What have been described above are examples. It is, of course, not possible to describe every conceivable combination of components or methodologies, but one of ordinary skill in the art will recognize that many further combinations and permutations are possible. Accordingly, the invention is intended to embrace all such alterations, modifications, and variations that fall within the scope of this application, including the appended claims. As used herein, the term “includes” means includes but not limited to, the term “including” means including but not limited to. The term “based on” means based at least in part on. Additionally, where the disclosure or claims recite “a,” “an,” “a first,” or “another” element, or the equivalent thereof, it should be interpreted to include one or more than one such element, neither requiring nor excluding two or more such elements. 

What is claimed is:
 1. A variable data printing (VDP) system comprising: a VDP document tool to access an image memory that stores a photograph image and to generate a VDP document that includes the photograph image; and a red-eye removal tool to process the VDP document to discover red-eye artifacts in the photograph image and to remove the red-eye artifacts from the photograph image in the VDP document based on a programmable red-eye sensitivity value.
 2. The system of claim 1, wherein the red-eye removal tool comprises a candidate location module to convert pixels in a color space associated with the photograph image to a standard color space to facilitate discovery of the red-eye artifacts.
 3. The system of claim 2, wherein the candidate location module is further to adjust a sampling rate of the photograph image based on a programmable sampling rate value for discovery of the red-eye artifacts.
 4. The system of claim 1, wherein the programmable red-eye sensitivity value comprises a single scalar value, wherein the red-eye removal tool is to compare an inner product of a feature vector and a weight vector with a threshold associated with the programmable red-eye sensitivity value to discover the red-eye artifacts in the photograph image.
 5. The system of claim 1, further comprising: a workflow memory to store a plurality of variable data channels for a plurality of photograph images; and a workflow settings memory to store a plurality of programmable red-eye sensitivity values, each of the plurality of programmable red-eye sensitivity values being associated with a respective one of the plurality of variable data channels.
 6. The system of claim 1, further comprising a user interface to allow a user to program a plurality of enhancement settings associated with the photograph image, the enhancement settings comprising the programmable red-eye sensitivity value.
 7. A method for removing red-eye in images associated with a variable data printing (VDP) workflow, the method comprising: initiating a design tool to generate a VDP document; adding a photograph image to a variable data channel associated with the VDP document; setting a programmable red-eye sensitivity value associated with removing red-eye artifacts from the photograph image in response to a user input instruction; computing a feature vector associated with a candidate red-eye artifact in the photograph image in the variable data channel; comparing an inner product between the feature vector and a weight vector with a threshold associated with the programmable red-eye sensitivity value to detect the presence of red-eye artifacts in candidate regions of the photograph image; and removing detected red-eye artifacts from the photograph image.
 8. The method of claim 7, further comprising: setting a sampling rate for the photograph image; and re-sampling the photograph image to generate a re-sampled image; and generating the feature vector associated with a candidate red-eye artifact in the re-sampled image.
 9. The method of claim 7, further comprising: converting pixels in a color space associated with the photograph image to a standard color space; and generating the feature vector from pixels in the standard color space.
 10. The method of claim 7, further comprising saving the programmable red-eye sensitivity value as being associated with the variable data channel in a memory, the memory comprising a plurality of programmable red-eye sensitivity values associated with a respective plurality of variable data channels.
 11. A computer system comprising: a user interface comprising: a variable data printing (VDP) document tool to generate a VDP document, the VDP document comprising a variable data channel that includes a photograph image; and an enhancement settings interface to program a plurality of enhancement settings associated with the variable data channel in response to a user input, the enhancement settings comprising a programmable red-eye sensitivity value; a processor to process the VDP document based on the enhancement settings; and a red-eye removal tool that is executed by the processor to discover red-eye artifacts in the photograph image and to remove the red-eye artifacts from the photograph image in the VDP document based on the programmable red-eye sensitivity value.
 12. The system of claim 11, wherein the variable data channel is a first variable data channel, the system further comprising: a workflow memory to store a plurality of variable data channels, the plurality of variable data channels including the first variable data channel; and a channel settings memory to store a plurality of programmable red-eye sensitivity values that are each associated with a plurality of photograph images of a respective one of the plurality of variable data channels.
 13. The system of claim 11, wherein the red-eye removal tool comprises a candidate location module to adjust a sampling rate of the photograph image based on a programmable sampling rate value and to convert pixels in a color space associated with the photograph image to a standard color space for discovery of the red-eye artifacts.
 14. The system of claim 11, wherein the programmable red-eye sensitivity value comprises a single scalar value, wherein the red-eye removal tool is to compare an inner product of a feature vector and a weight vector with a threshold associated with the programmable red-eye sensitivity value to discover the red-eye artifacts in the photograph image. 